package com.sophossystems.client.asmon.hibernate;

import java.io.Serializable;

import com.sophossystems.client.asmon.dto.ModuleDTO;

public class Module implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7521932433597080011L;

	/** 
	 * This attribute maps to the column idModule in the Module table.
	 */
	protected int idModule;

	/** 
	 * This attribute maps to the column Description in the Module table.
	 */
	protected String description;

	/** 
	 * This attribute maps to the column idSystem in the Module table.
	 */
	protected int idSystem;

	/** 
	 * This attribute represents whether the primitive attribute idSystem is null.
	 */
	protected boolean idSystemNull = true;

	/**
	 * Method 'Module'
	 * 
	 */
	public Module()
	{
	}

	/**
	 * Method 'getIdModule'
	 * 
	 * @return int
	 */
	public int getIdModule()
	{
		return idModule;
	}

	/**
	 * Method 'setIdModule'
	 * 
	 * @param idModule
	 */
	public void setIdModule(int idModule)
	{
		this.idModule = idModule;
	}

	/**
	 * Method 'getDescription'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getDescription()
	{
		return description;
	}

	/**
	 * Method 'setDescription'
	 * 
	 * @param description
	 */
	public void setDescription(java.lang.String description)
	{
		this.description = description;
	}

	/**
	 * Method 'getIdSystem'
	 * 
	 * @return int
	 */
	public int getIdSystem()
	{
		return idSystem;
	}

	/**
	 * Method 'setIdSystem'
	 * 
	 * @param idSystem
	 */
	public void setIdSystem(int idSystem)
	{
		this.idSystem = idSystem;
		this.idSystemNull = false;
	}

	/** 
	 * Sets the value of idSystemNull
	 */
	public void setIdSystemNull(boolean idSystemNull)
	{
		this.idSystemNull = idSystemNull;
	}

	/** 
	 * Gets the value of idSystemNull
	 */
	public boolean isIdSystemNull()
	{
		return idSystemNull;
	}
	
	public void mapper (ModuleDTO module){
		
		this.description = module.getDescription();
		this.idModule = module.getIdModule();
		this.idSystem = module.getIdSystem();
	}

}
